// 数字人资产 动作类别和服饰

.img-default {
  display: inline-block;
}

.img-active {
  display: none;
}

.group-tabs {
  background: #F3F5F8;
  height: 40px;
  border-radius: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 20px;

  &__item {
    height: 36px;
    text-align: center;
    width: 50%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;

    img {
      height: 16px;
      width: 16px;
      object-fit: contain;
    }

    &.active {
      background: #0B57D6;
      color: #fff;

      .img-active {
        display: inline-block;
      }

      .img-default {
        display: none;
      }
    }
  }
}

.page {
  display: flex;
  flex-direction: row;
  margin: -30px;
  position: relative;
}

.side {
  //width: 240px;
  width: 14vw;
  border-right: 1px solid #E4E7ED;
  height: calc(100vh - 144px);
  //background: #fad6d6;
  overflow: auto;

  header {
    padding: 20px;

    h3 {
      //font-weight: 600;
      font-weight: normal;
      font-size: 18px;
      padding: 0;
      margin: 0;
      margin-bottom: 20px;
    }
  }

  &-container {
    height: calc(100vh - 330px);
    overflow: auto;
  }
}

.main {
  height: calc(100vh - 144px);
  flex: 1;
}

.search-box {
  display: flex;
  height: 33px;
}

.add-box {
  height: 33px;
  width: 33px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #C7CAD3;
  box-sizing: border-box;
}

.input-box {
  flex: 1;
  background: #FFFFFF;
  border-radius: 4px;
  border: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
  margin-right: 10px;

  input {
    border: none;
    flex: 1;
    padding: 0 10px;
    font-size: 14px;
    width: 100%;
  }

  i {
    width: 30px;
    cursor: pointer;
    text-align: center;
  }
}

.pack-list {
  list-style: none;
  padding: 0;
  margin: 0;

  li {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    cursor: pointer;

    &.active {
      background-color: #E3F3FF;
      border-right: 2px solid #0045C8;

      .pack-name-box {
        color: #0045C8;
      }

      .more-icon {
        display: block;
      }

    }

    &:hover {
      .more-icon {
        display: block;
      }
    }
  }
}

.pack-name {
  display: flex;
  align-items: center;
  flex: 1;
  width: 50%;
}

.pack-tag {
  height: 24px;
  line-height: 24px;
  width: 50px;
  text-align: center;
  font-size: 12px;
  background: #F0F7FE;
  border-radius: 4px;
  border: 1px solid #308DEE;
  color:#308DEE;

  &--green {
    background: rgba(94, 191, 46, 0.1);
    border: 1px solid #5EBF2E;
    color: #5EBF2E;
  }

  &--disabled {
    background: rgba(232,232,232,0.1);
    border-radius: 4px;
    border: 1px solid #E4E7EA;
    color: #BAC0D1;
  }
}

.pack-name-box {
  font-size: 14px;
  color: #070B2D;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;

  &--disable {
    color:#C3C4C8;
  }
}

.more-icon {
  color: #63656E;
  display: none;
}

.action-container {
  //内边距  2025年1月16日15:45 经与UI决定  统一为20px
  padding: 20px 20px 20px 0;
}

.btn-block {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.img-list-block {
  height: calc(100vh - 330px);
  padding-left: 20px;
  border-bottom: 2px solid #E4E7ED;
  //background: red;
  overflow: auto;

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 18px;
  }
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 8px;
}
.checkbox-style {
  position: absolute;
  bottom: 15px;
  left: 15px;
}
.img-list-item {
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E4E7EA;
  aspect-ratio: 323 / 176;
  flex: 0 0 calc(25% - 15px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;

  @media screen and (max-width: 1680px) {
    flex: 0 0 calc(33.33% - 15px);
  }

  @media screen and (max-width: 1440px) {
    flex: 0 0 calc(50% - 15px);
  }
  &:hover {
    border-color: #0B57D6;
    box-shadow: 0px 4px 12px 0px rgba(9,19,53,0.17);

    button {
      border-color: #0B57D6;
      color: #0B57D6;
    }
  }

  &__status {
    position: absolute;
    background-color: #0B57D6;
    border-radius: 6px 0 6px 0;
    height: 22px;
    width: 62px;
    line-height: 22px;
    text-align: center;
    color: #fff;
    font-size: 12px;

    &--disable {
      background-color: #7E848E;
    }
  }
  &__cont {
    //height: 200px;
    display: flex;
    height: 100%;
    min-height: 0;
  }

  &__image {
    background: linear-gradient(to bottom, #B7BDCF, #DFE3F1, #BABFD1);
    height: 100%;
    width: 45%;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;

    @media screen and (max-width: 1680px) {
      width: 40%;
      height: 100%;
    }

    img, video {
      height: 100%;
      width: 100%;
      object-fit: contain;
    }
    video {
      object-fit: cover;
      height: 170%;
    }
  }

  &__image-info {
    flex: 1;
    margin-left: 13px;
    padding: 12px 12px 12px 0;
    min-width: 0;
  }

  &__name {
    font-size: 16px;
    color: #070B2D;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: Source Han Sans CN;
    word-break: break-word;
  }
  &__metadata {
    display: flex;
    align-items: center;
    //justify-content: space-between;
    margin-top: 12px;
  }
  &__mean {
    margin-top: 12px;

    h6 {
      color:#858689;
      font-size: 12px;
      margin: 0;
      padding: 0;
      font-weight: normal;
      margin-bottom: 3px;
    }

    &-text {
      font-size: 12px;
      color: #070B2D;
    }
  }
  &__tag {
    background: #F0F7FE;
    border-radius: 4px;
    border: 1px solid #308DEE;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 12px;
    color: #308DEE;
    width: 48px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    margin-right: 10px;

    &--green {
      background: #EFF8EA;
      border-radius: 4px;
      border: 1px solid #5EBF2E;
      color: #5EBF2E;
    }
  }

  &__time {
    font-size: 12px;
    color: #9597A0;
    display: flex;
    align-items: center;
    img {
      height: 14px;
      width: 14px;
    }
  }

  &__footer {
    height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    bottom: 0;
    right: 10px;

    button {
      height: 24px;
      width: 56px;
      font-size: 12px;
      border: 1px solid #E4E7EA;
      background-color: #fff;
      border-radius: 4px;
      margin-right: 10px;
    }

    i {
      color: #9B9DA6;
    }
  }
}
